package com.veryUsedCar.service.impl;

import com.veryUsedCar.entity.Person;
import com.veryUsedCar.mapper.PersonMapper;
import com.veryUsedCar.service.PersonService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * author  woo
 * date 2022/11/19 19:11
 * 描述：
 */
public class PersonServiceImpl implements PersonService {
    @Autowired
    private PersonMapper personMapper;
    // 根据用户id查询到收藏该商品用户的手机号
    @Override
    public List<String> selectPhone(List<Long> list1) {
        List<String> list = new ArrayList<>();
        for (int i = 0; i < list1.size(); i++) {
            Person person = personMapper.selectById(list1.get(i));
            list.add(person.getPhone());
        }
        return list;
    }
}
